home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 959 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.lang.c++
  2. Path: howland.reston.ans.net!torn!nott!cunews!alpha06!ug940002
  3. From: ug940002@scs.carleton.ca (Alex Fitzpatrick)
  4. Subject: Re: tracing "new" memory problems
  5. X-Nntp-Posting-Host: alpha06.scs.carleton.ca
  6. Message-ID: <DKvIxB.5w3@cunews.carleton.ca>
  7. Sender: news@cunews.carleton.ca (News Administrator)
  8. Organization: School Of Computer Science, Carleton University, Canada
  9. X-Newsreader: TIN [version 1.2 PL2]
  10. References: <4cmfpaINN3hb@bigbird.cc.williams.edu>
  11. Date: Mon, 8 Jan 1996 17:51:11 GMT
  12.  
  13. There is a company known as Pure Software who have a product
  14. called Purify which is great for tracing memory problems.
  15.  
  16. I don't have a contact for you but I'm sure you could search for it.
  17.  
  18. I sounds to me like you're never deleting something....
  19.  
  20. der tanzende Tigger (96kfd@williams.edu) wrote:
  21. : I am writing an application that uses new and delete extensively, and
  22. : it is very brittle: small changes (one more line read from a file in
  23. : one place) cause large memory errors (a routine that read 120 lines
  24. : from another file crashes on the sixth with "out of virtual memory in
  25. : new"). In each case, an object is created when a line is read, and the
  26. : memory is allocated using new.
  27.  
  28. : The problem is that my debugger (gdb) will not give me any more
  29. : information than "exited with error"--no backtrace, no indication
  30. : where the error occurred. The application was compiled with gcc 2.7.2
  31. : on a Sun Sparc with SunOS 4.1.3_U1 and libg++. Is there any way to
  32. : trace memory allocation in an application that crashes like this?
  33.  
  34. : Incidentally: my IPX has 16 mb of memory and 40 mb of virtual memory.
  35.  
  36. : --kd
  37.  
  38.  
  39.  
  40. --
  41. ___________________________________________________________________________
  42. Alex Fitzpatrick                 |
  43. Smalltalk, C/C++                 | "Life is like a bowl of cornflakes..."
  44. Carleton Computer Science        |
  45. ug940002@omega.scs.carleton.ca   |
  46. ---------------------------------------------------------------------------
  47.  
  48.